package com.sxyjhh.dbutil.meta;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * Description:表字段元数据
 *
 * @JDK Version:1.8.0_40
 * Version: V1.0
 * Author: wangchun
 * Date: 2016/3/29 10:05
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class ColumnMetaData {
    //列名
    private String name;
    //列值的类型
    private String type;

    private String remark;

    private Integer length;

    private Integer digitsLength;

    public ColumnMetaData(String name, String type, String remark, Integer length) {
        this.name = name;
        this.type = type;
        this.remark = remark;
        this.length = length;
    }

    @Override
    public String toString() {
        return "ColumnMetaData{" +
                "name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", remark='" + remark + '\'' +
                ", length='" + length + '\'' +
                ", digitsLength='" + digitsLength + '\'' +
                '}';
    }
}

